package com.sali.design_pattern.h_proxy_pattern.lesson_02;

/**
 * @description: 静态代理
 * @author: zhang hang
 * @date: 2023/3/19 21:30.
 * @version: 1.0
 */
public class ProxyService implements IOrder5Service {

    /**
     * description: 代理的具体对象
     **/
    private IOrder5Service order5Service;

    public ProxyService(IOrder5Service order5Service) {
        this.order5Service = order5Service;
    }

    @Override
    public void buyTicket() {
        System.out.println("买票...");
        order5Service.buyTicket();
        System.out.println("打扫卫生...");
    }
}
